﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%var list = v.data("list") as List<Bbs_TypeList>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.typename %>" <%if (bllPowerGroupService.powercheck("communicate", "bbstypeedit", modelpowergroup))  { %>ondblClick="javascript:parent.onbotton('_{setedit_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.BbsController().BbsTypeEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'ifrmatlistedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="7%">
				<input type="hidden" name="infoid" id="infoid" value="<%=row.Id %>">
				<input type="text" name="pid" size="3" value="<%=row.pid %>" class="infoInput" onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}">
			</td>
			<td width="7%"><%=row.Id %></td>
			<td width="6%"><%=row.lng %></td>
			<td width="30%"><%=row.typename %></td>
			<td width="10%"><%=row.puvname %></td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td><%if(row.ismenu==1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="11%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isseccode==1){ %><span class="isseccode_ok" title="_{formmain_isseccode_ok}"></span><%}else{ %><span class="isseccode_no" title="_{formmain_isseccode_no}"></span><%} %></td>
						<td><%if(row.iswap==1){ %><span class="iswap_ok" title="_{open_botton_title}"></span><%}else{ %><span class="iswap_no" title="_{close_botton_title}"></span><%} %></td>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{open_botton_title}"></span><%}else{ %><span class="audit_no" title="_{close_botton_title}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="18%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
                         <%if (bllPowerGroupService.powercheck("communicate", "bbsmainlist", modelpowergroup)) { %>
						<td><a class="setedit2" onclick="javascript:parent.onbotton('_{forumtype_text_infolist_title}','#{view}?loadfun=bbsmainlist&btid=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'bbsmainlist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="bbsmainlist<%=row.Id %>" href="#body" title="_{forumtype_text_infolist_title}" hidefocus="true">_{forumtype_text_infolist_title}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("communicate", "bbstypeedit", modelpowergroup)) { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('_{setedit_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.BbsController().BbsTypeEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'ifrmatlistedit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="ifrmatlistedit<%=row.Id %>"  href="#body" title="_{setedit_botton}" hidefocus="true">_{setedit_botton}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("communicate", "bbstypedel", modelpowergroup)) { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.BbsController().BbsTypeDel,row.Id) %>?freshid='+Math.random(),'#{load}','_{run_ok}','_{run_no}',true,'_{del_messok}','selectform','selectall','check_all');" href="#body" title="_{setdel_botton}" hidefocus="true">_{setdel_botton}</a></td>
						<%} %>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>